from pygame.sprite import Sprite

from sprite.base_sprite import BaseSprite


class MoveSprite(BaseSprite):
    speed = 5
    postion = None
    direction = 'U'
    moveState = True

    def __init__(self):
        super().__init__()
        self.postion = self.get_surface().get_rect()

    # 获取surface
    def get_surface(self):
        pass

    def move(self, screen):
        pass

    # 显示
    def display(self, screen):
        if self.active:
            screen.blit(self.get_surface(), self.postion)
            self.move(screen)
